const { contextBridge, ipcRenderer } = require('electron/renderer')

contextBridge.exposeInMainWorld('electronAPI', {
  writeConfig: (inputJson) => ipcRenderer.invoke('writeConfig',inputJson),
  Http_log: (inputJson) => ipcRenderer.invoke('Http_log',inputJson),
  Dll_write: (inputJson) => ipcRenderer.invoke('Dll_write', inputJson),
  readConfig: () => ipcRenderer.invoke('readConfig'),
  Test_Api: () => ipcRenderer.invoke('Test_Api'),
  quitApp: () => ipcRenderer.invoke('quitApp'),
  getVersion: () => ipcRenderer.invoke('getVersion'),
})
